import axios from '@/utils/request'

export const getEmployeeList = data => axios.get('/sys/user', {params:data})
export const delEmployeeItem = id => axios.delete(`/sys/user/${id}`)
export const outerExcel = () => axios.get('/sys/user/export', {responseType: 'blob'})
export const outerTemplate = () => axios.get('/sys/user/import/template', {responseType: 'blob'})
export const innerExcel = data => axios.post('/sys/user/import', data)
export const getEmployeeItem = id => axios.get(`/sys/user/${id}`)
export const editEmployeeItem = (id, data) => axios.put(`/sys/user/${id}`, data)
export const addEmployeeItem = data => axios.post('/sys/user', data)
export const editEmployeeRoles = data => axios.put('/sys/user/assignRoles', data)
